<!--{eval $_TPL['titles'] = array(lang('shares'));}-->
<!--{template header}-->


<!--{if !empty($_SGLOBAL[inajax])}-->
	<div id="space_share">
		<h3 class="feed_header">
			<a href="space.php?do=share&view=me" class="r_option">{lang topic_share}</a>
			{lang shares} ({lang total} $count {lang units})</h3>
		
		<!--{if $list}-->
		<ul class="line_list">
			<!--{loop $list $value}-->
				<!--{template space_share_li}-->
			<!--{/loop}-->
			<div class="page">$multi</div>
		</ul>
		<!--{else}-->
		<div class="c_form">{lang no_shares_yet}</div>
		<!--{/if}-->
		
	</div><br>
<!--{else}-->

<!--{if $space[self]}-->
<h2 class="title"><img src="image/app/share.gif" />{lang shares}</h2>
<div class="tabs_header">
	<ul class="tabs">
		<!--{if $space[friendnum]}--><li$actives[we]><a href="space.php?uid=$space[uid]&do=share"><span>{lang friends_shares}</span></a></li><!--{/if}-->
		<li$actives[all]><a href="space.php?uid=$space[uid]&do=share&view=all"><span>{lang members_shares}</span></a></li>
		<li$actives[me]><a href="space.php?uid=$space[uid]&do=share&view=me"><span>{lang my_shares}</span></a></li>
	</ul>
</div>
<!--{else}-->
<!--{eval
	$_TPL['spacetitle'] = lang('shares');
	$_TPL['spacemenus'][] = "<a href=\"space.php?uid=$space[uid]&do=share&view=me\">".lang('author_all_shares')."</a>";
}-->
<!--{template space_menu}-->
<!--{/if}-->

<div class="h_status">
{lang view_shares_by_type}: 
<a href="$theurl"$sub_actives[type_all]>{lang all}</a><span class="pipe">|</span>
<a href="$theurl&type=link"$sub_actives[type_link]>{lang links}</a><span class="pipe">|</span>
<a href="$theurl&type=video"$sub_actives[type_video]>{lang video}</a><span class="pipe">|</span>
<a href="$theurl&type=music"$sub_actives[type_music]>{lang music}</a><span class="pipe">|</span>
<a href="$theurl&type=flash"$sub_actives[type_flash]>Flash</a><span class="pipe">|</span>
<a href="$theurl&type=blog"$sub_actives[type_blog]>{lang blogs}</a><span class="pipe">|</span>
<a href="$theurl&type=album"$sub_actives[type_album]>{lang albums}</a><span class="pipe">|</span>
<a href="$theurl&type=pic"$sub_actives[type_pic]>{lang images}</a><span class="pipe">|</span>
<a href="$theurl&type=mtag"$sub_actives[type_mtag]>{lang groups}</a><span class="pipe">|</span>
<a href="$theurl&type=thread"$sub_actives[type_thread]>{lang thread}</a><span class="pipe">|</span>
<a href="$theurl&type=poll"$sub_actives[type_poll]>{lang polls}</a><span class="pipe">|</span>
<a href="$theurl&type=event"$sub_actives[type_event]>{lang events}</a><span class="pipe">|</span>
<a href="$theurl&type=space"$sub_actives[type_space]>{lang members}</a><span class="pipe">|</span>
<a href="$theurl&type=tag"$sub_actives[type_tag]>{lang tags}</a>
</div>

<div id="content">
	<ul id="share_ul">
		<!--{if $list}-->
			<!--{loop $list $value}-->
				<!--{template space_share_li}-->
			<!--{/loop}-->
			<div class="page">$multi</div>
		<!--{else}-->
			<li><div class="c_form">{lang no_shares_yet}.</div></li>
		<!--{/if}-->
	</ul>

</div>


<div id="sidebar">
	<div class="ye_r_t"><div class="ye_l_t"><div class="ye_r_b"><div class="ye_l_b">
	<form id="shareform" name="shareform" action="cp.php?ac=share&type=link" method="post">
	<table cellspacing="2" cellpadding="2" width="100%">
		<tr><td><strong>{lang share_your_info}:</strong></td></tr>
		<tr><td><input type="text" class="t_input" name="link" onfocus="javascript:if('http://'==this.value)this.value='';" onblur="javascript:if(''==this.value)this.value='http://'" id="share_link" style="width:98%;" value="http://" /></td></tr>
		<tr><td><strong>{lang description}:</strong></td></tr>
		<tr>
			<td>
				<textarea id="share_general" name="general" style="width:98%;" rows="3" onkeydown="ctrlEnter(event, 'sharesubmit_btn')"></textarea>
			</td>
		</tr>
		<!--{if checkperm('seccode')}-->
		<tr>
			<td>
			<!--{if $_SCONFIG['questionmode']}-->
					<p>{lang enter_sec_code_submit}</p>
					<p><!--{eval question();}--></p>
					<p><input type="text" id="seccode" name="seccode" value="" size="15" class="t_input"></p>
			<!--{else}-->
					<p><script>seccode();</script></p>
					<p>{lang verification_enter_code} <a href="javascript:updateseccode()">{lang verification_reload}</a></p>
					<p><input type="text" id="seccode" name="seccode" value="" size="15" class="t_input"></p>
			<!--{/if}-->
			</td>
		</tr>
		<!--{/if}-->
		<tr><td>
		<input type="hidden" name="refer" value="space.php?uid=$space[uid]&do=share&view=me" />
		<input type="hidden" name="sharesubmit" value="true" />
		<input type="button" id="sharesubmit_btn" name="sharesubmit_btn" value="{lang share_submit}" class="submit" onclick="ajaxpost('shareform', 'share_add')" />
		</td></tr>
		<tr><td id="__shareform"></td></tr>
	</table>
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" /></form>
	</div></div></div></div>

	<div class="sidebox" id="help">
		<h2 class="title">{lang how_to_share_pages}</h2>
		<p>{lang fill_url_directly}</p>
		<h2 class="title">{lang how_to_share_video}</h2>
		<p>{lang fill_video_page}</p>
		<p>{lang video_sites_supported}</p>
		<h2 class="title">{lang how_to_share_music}</h2>
		<p>{lang music_files_supported}</p>
		<h2 class="title">{lang how_to_share_flash}</h2>
		<p>{lang fill_flash_url}</p>
	</div>

</div>
<!--{/if}-->

<!--{template footer}-->
